package cn.iocoder.yudao.module.system.controller.admin.datascopevalue.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;
import java.util.*;

@Schema(description = "管理后台 - 权限范围值新增/修改 Request VO")
@Data
public class DataScopeValueSaveReqVO {

    @Schema(description = "菜单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30334")
    private Long id;

    @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "菜单名称不能为空")
    private String name;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "数据范围id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14839")
    @NotNull(message = "数据范围id不能为空")
    private Long dataScopeId;

    @Schema(description = "路由地址")
    private String value;

    @Schema(description = "菜单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "菜单状态不能为空")
    private Integer status;

}